﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesTool.Model
{
    public class HttpModel
    {
        public class OperationcheckDto
        {
            /// <summary>
            /// 序列号
            /// </summary>
            public string serial_number { get; set; }
            /// <summary>
            /// 工序
            /// </summary>
            public string operation_name { get; set; }

        }
        public class OperationcheckRb
        {
            /// <summary>
            /// 200 成功；其他参考http状态码
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 返回的成功或失败消息（ success 成功）
            /// </summary>
            public string message { get; set; }
            /// <summary>
            /// 1：通过，0：不通过
            /// </summary>
            public int result { get; set; }
            /// <summary>
            /// 工单号
            /// </summary>
            public string wocode { get; set; }
            /// <summary>
            /// 订单号
            /// </summary>
            public string mocode { get; set; }
        }
        public class CheckdataDto
        {
            /// <summary>
            /// 过程数据
            /// </summary>
            public string data { get; set; }
            /// <summary>
            /// 序列号
            /// </summary>
            public string serial_number { get; set; }
            /// <summary>
            /// 工序名称
            /// </summary>
            public string operation_name { get; set; }
            /// <summary>
            /// 操作人员
            /// </summary>
            public string user_name { get; set; }
            /// <summary>
            /// 测试结果（OK,NG）
            /// </summary>
            public string quality { get; set; }
        }
        public class CheckdataRb
        {
            /// <summary>
            /// 200 成功；其他参考http状态码
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 返回的成功或失败消息（ success 成功）
            /// </summary>
            public string message { get; set; }
            /// <summary>
            /// 1：通过，0：不通过
            /// </summary>
            public int result { get; set; }
            /// <summary>
            /// 工单号
            /// </summary>
            public string wocode { get; set; }
            /// <summary>
            /// 订单号
            /// </summary>
            public string mocode { get; set; }

        }
        public class BarcodestatusDto
        {
            /// <summary>
            /// 序列号
            /// </summary>
            public string serial_number { get; set; }
            /// <summary>
            /// 工序名称
            /// </summary>
            public string operation_name { get; set; }
            /// <summary>
            /// 测试结果 OK,NG
            /// </summary>
            public string quality { get; set; }
        }
        public class BarcodestatusRb
        {
            /// <summary>
            /// 200 成功；其他参考http状态码
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 返回的成功或失败消息（ success 成功）
            /// </summary>
            public string message { get; set; }
            /// <summary>
            /// 1：通过，0：不通过
            /// </summary>
            public int result { get; set; }
            /// <summary>
            /// 工单号
            /// </summary>
            public string wocode { get; set; }
            /// <summary>
            /// 订单号
            /// </summary>
            public string mocode { get; set; }
        }
        public class GetUserRb
        {
            /// <summary>
            /// 200 成功；其他参考http状态码
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 返回的成功或失败消息（ success 成功）
            /// </summary>
            public string message { get; set; }
            public string msg { get; set; }
            public object data { get; set; }
        }
    }
}
